const router = require('koa-router')()

router.prefix('/login')
// http://localhost:3000/login
router.get('/', function (ctx, next) {
    ctx.body = {
        errno:0,
        msg: 'webcome to use login module'
    }
})

router.get('/findPwd', function (ctx, next) {
    ctx.body = {
        errno:0,
        msg: 'i am find pwd api'
    }
})

router.get('/register', function (ctx, next) {
    ctx.body = {
        errno:0,
        msg: 'i register api'
    }
})

module.exports = router